package joindemo.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;

/**
 * 草稿保存请求。
 * @author pym
 */
@Data
@Schema(description = "文章草稿保存请求")
public class ArticleDraftRequest {

    @Schema(description = "草稿ID，更新草稿时传入")
    private String draftId;
    @Valid
    @NotNull(message = "草稿内容不能为空")
    @Schema(description = "草稿对应的文章内容")
    private ArticleDto article;
}